import { http } from '@/utils/http/axios';

export function listBad(data = {}) {
  return http.request({
    url: '/admin/base/bad/list',
    method: 'get',
    data,
  });
}

export function pageBad(data = {}) {
  return http.request({
    url: '/admin/base/bad/page',
    method: 'post',
    data,
  });
}

export function addBad(data = {}) {
  return http.request({
    url: '/admin/base/bad/add',
    method: 'post',
    data,
  });
}

export function updateBad(data = {}) {
  return http.request({
    url: '/admin/base/bad/update',
    method: 'post',
    data,
  });
}

export function delBad(data = {}) {
  return http.request({
    url: '/admin/base/bad/delete',
    method: 'post',
    data,
  });
}
